check button: Convert to gadgets
authorMatthias Clasen <mclasen@redhat.com>
Fri, 4 Dec 2015 05:34:52 +0000 (00:34 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 15 Dec 2015 13:41:16 +0000 (08:41 -0500)
commit233179d37416b69706d19ed8fb486eef720838bc
treec124ff84184eae1975bc6d8da811d79204465627
parent37e9d926329b8d9fd91f8022bff7c5e2c75dc7e5
check button: Convert to gadgets

Use a gadget for the button, and for the indicator.
A complication here is that GtkCheckButton (and
GtkRadioButton) have a totally different appearance
depending on the ::draw-indicator property. If an
indicator is not required, we just reuse the
GtkButton gadget.
This mostly works; some minor sizing issues left, e.g. cranking
up the indicator-size causes the checkbutton grid in testgtk
to overlap.
gtk/gtkcheckbutton.c